﻿
using System.Collections.ObjectModel;
namespace PsqlDotnet.Model.Schema
{
    public interface ITable
    {
        string Name { get; }
        ReadOnlyCollection<Column> Columns { get; }
        ReadOnlyCollection<IConstraint> Constraints { get; }
        int ColumnCount { get; }

        bool AddColumn(Column column);
        bool RemoveColumn(Column column);
        bool RemoveColumn(string columnName);
        bool AddConstraint(IConstraint constraint);
        bool RemoveConstraint(IConstraint constraint);
        bool RemoveConstraint(string constraintName);
    }
}
